package com.ruoyi.auth.utils;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
  * 读取 xml 中的额外配置
  * @author 侯稼骏
  * @date 2021年08月06日 14:43
  */
@Component
@ConfigurationProperties(prefix = "sms.server")
public class SmsServicesSettings {

   private long smsValidTimeInterval;		//用来设置redis中验证码的过期时间 
   private int length;						//设置验证码长度
   private String message;					//邮件的内容文本

   public long getSmsValidTimeInterval() {
       return smsValidTimeInterval;
   }

   public void setSmsValidTimeInterval(long smsValidTimeInterval) {
       this.smsValidTimeInterval = smsValidTimeInterval;
   }

   public int getLength() {
       return length;
   }

   public void setLength(int length) {
       this.length = length;
   }

   public String getMessage() {
       return message;
   }

   public void setMessage(String message) {
       this.message = message;
   }
}   
